You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 },
},
});
```
0 commit comments