graphql-perl / GraphQL-Plugin-Convert-DBIC

Plugin to convert DBIx::Class schema to GraphQL schema
https://metacpan.org/release/GraphQL-Plugin-Convert-DBIC
4 stars 5 forks source link

GraphQL database example? #23

Open jamesbriggs opened 3 years ago

jamesbriggs commented 3 years ago

Hi folks.

Finding it tough to get rolling so far.

Is there a link to fairly good GraphQL database sample code for a Users table?

Bonus for basic auth support.

Thanks, James.

mohawk2 commented 3 years ago

Have you taken a look at the tests? If you could have a play with those, and see what if anything you get out of that that you feel should be in the docs, and/or any lack of clarity in the docs, please say on here.

Basic auth would be orthogonal to any database or other schema issues. Doing authentication as part of a GraphQL system is a little complicated, but can be done as a layer entirely over the top at the HTTP level. Have you looked around at GraphQL tutorials on these matters?