graphql-perl / sample-mojolicious

Sample Mojolicious applet serving GraphQL
5 stars 2 forks source link

Missing setup code in doc sample code #2

Open jamesbriggs opened 3 years ago

jamesbriggs commented 3 years ago

Hi.

The source code example on the doc page is missing a few lines of code to make a working app:

Beginning:

use Mojolicious::Lite;
use GraphQL::Schema;

End:

app->start;

Even with those lines, I'm not seeing a valid GraphQL or HTTP response.

I would describe all of the sample code for the related modules as either incomplete, or not useful enough.

https://metacpan.org/pod/Mojolicious::Plugin::GraphQL

kiwiroy commented 3 years ago

@jamesbriggs did you mean to record this here? See https://github.com/kiwiroy/Mojolicious-Plugin-GraphQL/commit/3f8c64ee9e61da439d8bf125570f379c6776ece0 for a complete example that is more simple than the chat app in this repository.

jamesbriggs commented 3 years ago

The hello world example is too trivial, I'm looking for an example that combinesMojolicious, GraphQL and DBI/DBIx.

Thanks, James.

On Tuesday, September 7, 2021, 3:51:26 AM PDT, Roy Storey ***@***.***> wrote:  

@jamesbriggs did you mean to record this here? See @.*** for a complete example that is more simple than the chat app in this repository.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.