MCPcopy
hub / github.com/graphql/graphiql / setSchemaConfig

Method setSchemaConfig

packages/monaco-graphql/src/api.ts:109–116  ·  view source on GitHub ↗

* override all schema config. * * @param schemas {SchemaConfig[]}

(schemas: SchemaConfig[])

Source from the content-addressed store, hash-verified

107 * @param schemas {SchemaConfig[]}
108 */
109 public setSchemaConfig(schemas: SchemaConfig[]): void {
110 this._schemas = schemas || null;
111 this._schemasById = schemas.reduce((result, schema) => {
112 result[schema.uri] = schema;
113 return result;
114 }, Object.create(null));
115 this._onDidChange.fire(this);
116 }
117
118 public setExternalFragmentDefinitions(
119 externalFragmentDefinitions: string | FragmentDefinitionNode[],

Callers 4

constructorMethod · 0.95
renderFunction · 0.80
EditorFunction · 0.80
EditorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected