We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da57238 commit 55ab7f9Copy full SHA for 55ab7f9
src/type/schema.ts
@@ -54,9 +54,10 @@ export function assertSchema(schema: unknown): GraphQLSchema {
54
* your library or project. Do not use a shortened identifier as this increases
55
* the risk of conflicts. We recommend you add at most one extension field,
56
* an object which can contain all the values you need.
57
+ * Conflicts can be avoided by using a symbol instead of a string key.
58
*/
59
export interface GraphQLSchemaExtensions {
- [attributeName: string]: unknown;
60
+ [attributeName: string | symbol]: unknown;
61
}
62
63
/**
0 commit comments