text: import { createCollection } from 'meteor/vulcan:core';
  import schema from './schema.js';
  import './fragments.js';
  
  const Currencies = createCollection({
    collectionName: 'Currencies',
    typeName: 'Currency',
    schema,
    // resolvers: yourCustomResolvers // null to disable default resolvers generation
    // mutations: yourCustomMutations // null to disable default mutations generation
    permissions: {
      canRead: ['guests', 'members', 'admins'],
      canCreate: ['admins'],
      canUpdate: ['owners', 'admins'],
      canDelete: ['owners', 'admins']
    },
    //callbacks: {
    //  create: { 
    //    before: []
    //  }
    //},
    //customFilters: [
    //  {
    //    name: "_withRatings",
    //    argument: "average: Int",
    //    filter: ({ input, context, filterArguments }) => {
    //      const { average } = filterArguments;
    //      const { Reviews } = context;
    //      // get all movies that have an average review score of X stars 
    //      const xStarReviewsMoviesIds = getMoviesByScore(average);
    //      return {
    //        selector: { _id: { $in: xStarReviewsMoviesIds } },
    //        options: {}
    //      }
    //    }
    //  }
    //]
  
  });
  
  
  
  export default Currencies;
  