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.

Remove some mutations or queries for a specific model

See original GitHub issue

Describe the solution you’d like Remove some mutations or queries for a specific model

Describe alternatives you’ve considered Maybe add directives to model like

type User @queryOnly {
  name: String
}

and mutation plugins will know that it’s a queryOnly model, hence skip mutation generation.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
wwwy3y3commented, Jan 8, 2019

@jthegedus the authentication directives will not be data-source specific, thus, it will not generate firestore security rules. It’s going to create graphql middleware with the specified authentication rules and apply to graphql server instead.

Since we’re using firebase-admin, it will bypass all security rules.

0reactions
davidgustyscommented, May 6, 2019

@wwwy3y3 Any updates on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete Mutations - GraphQL - Dgraph
Delete Mutations allow you to delete objects of a particular type. We use the following schema to demonstrate some examples. Schema:.
Read more >
Mutations in Apollo Client - Apollo GraphQL Docs
If you know that your app usually needs to refetch certain queries after a particular mutation, you can include a refetchQueries array in...
Read more >
How to remove all deleteXXX mutation from graphql api? #6255
Is there any way to remove delete mutation completely? ... type Post @model(queries: { get: "post" }, mutations: {create: "createPost", ...
Read more >
Remove Items from an Array with a GraphQL Mutation
GraphQL mutations are used to change data and can be also used to delete data. In this lesson, we'll make changes to the...
Read more >
Queries and Mutations - GraphQL
On this page, you'll learn in detail about how to query a GraphQL server. Fields#. At its simplest, GraphQL is about asking for...
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