Graphql doc fix

This commit is contained in:
Aaron Carlino 2020-11-01 13:09:50 +13:00
parent 773145d87b
commit 51b4a76bd8
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ need, but the key methods map directly to their configuration counterparts:
$myQuery = Query::create('readCountries', '[Country]') $myQuery = Query::create('readCountries', '[Country]')
->addArg('limit', 'Int'); ->addArg('limit', 'Int');
$myModel = ModelType::create(MyDataObject::class) $myModel = $schema->createModel(MyDataObject::class)
->addAllFields() ->addAllFields()
->addAllOperations(); ->addAllOperations();
$schema->addModel($myModel); $schema->addModel($myModel);