Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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) => {
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) => {
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) => {
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) => {
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) => {
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) => {
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) => {
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) => {
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) => {
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) => {