Skip to content

Commit

Permalink
docs: add rules to remember when merging sub schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
vuongxuongminh committed Mar 18, 2024
1 parent 0589b5a commit 0b41be9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ var_dump(SchemaPrinter::doPrint($schemaGateway));
var_dump(GraphQL::executeQuery($schemaGateway, $query)->toArray());
```


**Rules when merging sub schemas:**

+ Top-level field names need to be unique across all merged schemas (case-sensitive match).
+ Types with the exact same name and structure will be merged. But types with the same name but different structure will result in type conflicts.

Inspiration
-----------

Expand Down

0 comments on commit 0b41be9

Please sign in to comment.