mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Graphql doc fix
This commit is contained in:
parent
773145d87b
commit
51b4a76bd8
@ -86,7 +86,7 @@ need, but the key methods map directly to their configuration counterparts:
|
||||
$myQuery = Query::create('readCountries', '[Country]')
|
||||
->addArg('limit', 'Int');
|
||||
|
||||
$myModel = ModelType::create(MyDataObject::class)
|
||||
$myModel = $schema->createModel(MyDataObject::class)
|
||||
->addAllFields()
|
||||
->addAllOperations();
|
||||
$schema->addModel($myModel);
|
||||
|
Loading…
x
Reference in New Issue
Block a user