From 0b41be90d9c50dbdc9e0238c9ad8a7c545ed4c94 Mon Sep 17 00:00:00 2001 From: Minh Vuong Date: Mon, 18 Mar 2024 23:29:24 +0700 Subject: [PATCH] docs: add rules to remember when merging sub schemas --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index f534d4c..77d313a 100644 --- a/README.md +++ b/README.md @@ -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 -----------