Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: projection with
*
key request all fields from database
By default `graphql-compose-mongoose` requests that fields which are listed in the graphql query. So you may want to add some `rawData` field to your type for debug/administrative purposes in such way: ```js UserTC.addFields({ rawData: { type: 'JSON', resolve: (source, args, context) => (context.isAdmin() ? source.toJSON() : null), projection: { '*': true }, }, }); ```
- Loading branch information