question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature request: @MutationField and @QueryField

See original GitHub issue

Currently if I return a class from @Mutation() and @Query() and I want to have a field like patch( image ) on the class, this field is exposed on mutations and on queries as well. I’d like to avoid this-hence the new decorator. This could be achieved with a decorator config like @Field({mutationOnly: true}) or @Field({query: false}), but IMHO it’s own decorator is more explicit way.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pie6kcommented, Jul 13, 2018

I didnt understand your question. I’d appreciate if you take your time re-writing it 😃 If it’d be race called ‘who is the fastests to submit issue’, you’d win 😉 )

0reactions
pie6kcommented, Aug 12, 2018

Could you describe in details your desired schema?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Queries and Mutations - GraphQL
GraphQL queries can traverse related objects and their fields, letting clients fetch lots of related data in one request, instead of making several ......
Read more >
Writing mutation resolvers | Full-Stack Quickstart
This resolver takes an email address and returns corresponding user data from our userAPI . We add a token field to the object...
Read more >
mutationField - GraphQL Nexus
mutationField exists as a shorthand for this common case: 1export const createUser = mutationField('createUser', {. 2 type: SomeType,. 3 resolve() {.
Read more >
GraphQL: Can you mutate the results of a query?
But then we lose the ability to make the query we wanted to make, because findForum is a query field, not a mutation...
Read more >
@serverless/aws-app-sync - npm
It supports all AWS AppSync features, while offering sane defaults that makes ... 'dynamodb_ds' type: 'Query' field: 'getMyField' request: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found