How to use the forest-express-sequelize.ResourcesGetter function in forest-express-sequelize

To help you get started, we’ve selected a few forest-express-sequelize examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ForestAdmin / graphql-stitcher / example / movies / Movies / graphql / actor_images.js View on Github external
count_actor_images: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          return await new Liana.ResourcesGetter(models.actor_images, opts, params).count();
        },
        list_actor_images: async (obj, params) => {
github ForestAdmin / graphql-stitcher / example / movies / Movies / graphql / schema_migrations.js View on Github external
count_schema_migrations: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          return await new Liana.ResourcesGetter(models.schema_migrations, opts, params).count();
        },
        list_schema_migrations: async (obj, params) => {
github ForestAdmin / graphql-stitcher / example / meals / Meals / graphql / chef_availabilities.js View on Github external
list_chef_availabilities: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          const r = await new Liana.ResourcesGetter(models.chef_availabilities, opts, params).perform();
          return r[0];
        },
        get_chef_availabilities: async (obj, { id }, context, info) => {
github ForestAdmin / graphql-stitcher / example / movies / Movies / graphql / genres.js View on Github external
count_genres: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          return await new Liana.ResourcesGetter(models.genres, opts, params).count();
        },
        list_genres: async (obj, params) => {
github ForestAdmin / graphql-stitcher / example / movies / Movies / graphql / genres_movies.js View on Github external
list_genres_movies: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          const r = await new Liana.ResourcesGetter(models.genres_movies, opts, params).perform();
          return r[0];
        },
        get_genres_movies: async (obj, { id }, context, info) => {
github ForestAdmin / graphql-stitcher / example / movies / Movies / graphql / actors.js View on Github external
count_actors: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          return await new Liana.ResourcesGetter(models.actors, opts, params).count();
        },
        list_actors: async (obj, params) => {
github ForestAdmin / graphql-stitcher / example / meals / Meals / graphql / orders_products.js View on Github external
list_orders_products: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          const r = await new Liana.ResourcesGetter(models.orders_products, opts, params).perform();
          return r[0];
        },
        get_orders_products: async (obj, { id }, context, info) => {
github ForestAdmin / graphql-stitcher / example / movies / Movies / graphql / rentals.js View on Github external
count_rentals: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          return await new Liana.ResourcesGetter(models.rentals, opts, params).count();
        },
        list_rentals: async (obj, params) => {
github ForestAdmin / graphql-stitcher / example / meals / Meals / graphql / product_images.js View on Github external
list_product_images: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          const r = await new Liana.ResourcesGetter(models.product_images, opts, params).perform();
          return r[0];
        },
        get_product_images: async (obj, { id }, context, info) => {
github ForestAdmin / graphql-stitcher / example / meals / Meals / graphql / chefs.js View on Github external
list_chefs: async (obj, params) => {
          if (!params.filterType) { params.filterType = 'and'; }
          if (!params.timezone) { params.timezone = 'Europe/London'; }

          const r = await new Liana.ResourcesGetter(models.chefs, opts, params).perform();
          return r[0];
        },
        get_chefs: async (obj, { id }, context, info) => {