derekjwilliams / first-next-auth

https://first-next-auth-eight.vercel.app
0 stars 0 forks source link

Support graphql in addition to Supabase SDK #13

Open derekjwilliams opened 7 months ago

derekjwilliams commented 7 months ago

The supabase SDK is nice, wraps Postgrest, but it would be nice to not do that in many cases, e.g. use the Postgrest API directly or the graphql API directly, e.g. in a react-query Query or Mutation, would need to use axios or fetch (though axios is preferred). Handling auth could be tricky here

derekjwilliams commented 7 months ago

See https://supabase.com/blog/graphql-now-available

But the example is 2 years old https://github.com/supabase-community/supabase-graphql-example

should be fairly straight forward, but docs are hard to find

https://supabase.github.io/pg_graphql/supabase/

derekjwilliams commented 5 months ago

Prisma has been installed and added to the project