supabase / supabase

The open source Firebase alternative. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
https://supabase.com
Apache License 2.0
72.06k stars 6.9k forks source link

Cant use GraphQL introspection query after following tutorial for RBAC #27015

Closed michaelchiche closed 2 months ago

michaelchiche commented 3 months ago

Bug report

Describe the bug

I have 2 bugs in one. Please tell me if I should split them between 2 issues

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to '…'
  4. See error

Expected behavior

Screenshots

System information

Additional context

Add any other context about the problem here.

encima commented 3 months ago

Hi there, thanks for opening!

The tutorial does create a valid enum but, unfortunately, the GraphQL spec does not allow a . in the value (see docs). To fix, you can follow the convention channels_delete and channels_edit

If you would like to add a note to the guide to mention this behaviour is different for GraphQL, please do open a PR and mention this issue!

Hallidayo commented 2 months ago

Hi all, We’re going to close this one due to inactivity. Please feel free to reopen if you’re still having issues here or open a new issue.