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.

Only see Queries not mutations

See original GitHub issue

Summary

I have tried Apollo Server and Graphql-Mesh both working with Postgraphile and neither shows mutations only queries. I am currently connected via my local postgres database and the other is connected to my supabase instance. Any idea that can help on why mutations doesn’t show?

I’ve visited here: https://www.graphile.org/postgraphile/crud-mutations/#if-mutations-dont-show-up but none of these reasons match my use case.

Additional context

I am the primary and only user for my database(s) and have all permissions to read and write to them. Using Supabase for my hosted instance and local postgres install and accessible via pgAdmin 4.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bastianhiltoncommented, Jul 16, 2022

It turned out to be my ids that were linked to other tables that were causing the issue. After going through my database and unlinking my ids across the database, I was able to get my mutations to appear. Screenshot 2022-07-16 160838

0reactions
benjiecommented, Jul 16, 2022

I do not know how to set envvars in Microsoft Terminal, but it seems what you’re doing isn’t working. Sorry, I don’t develop on Windows; perhaps try asking in the Discord: https://discord.gg/graphile

Read more comments on GitHub >

github_iconTop Results From Across the Web

GraphQL Mutation vs Query – When to use a GraphQL Mutation
If queries are the GraphQL equivalent to GET calls in REST, then mutations represent the state-changing methods in REST (like DELETE , PUT...
Read more >
Schema not working with only Mutation field #414 - GitHub
I want to create a schema which has only mutation field. It doesn't need query field. var Schema, _ = graphql.NewSchema ...
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 >
Mastering Mutations in React Query | TkDodo's blog
Mutations are, per design, not directly coupled to queries. A mutation that likes a blog post has no ties towards the query that...
Read more >
GraphQL: Can you mutate the results of a query?
A way around this might be to redefine all the query fields you need inside the mutation type. This is obviously not a...
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