MCPcopy
hub / github.com/ardatan/graphql-tools / set

Method set

packages/mock/src/types.ts:169–169  ·  view source on GitHub ↗

* Set a field value in the store for the given type, key and field * name — and optionally field arguments. * * If the the field return type is an `ObjectType` or a list of * `ObjectType`, you can set references to other entity as value: * * ```ts * // set the viewer name * s

(args: SetArgs<KeyT>)

Source from the content-addressed store, hash-verified

167 * ```
168 */
169 set<KeyT extends KeyTypeConstraints = string>(args: SetArgs<KeyT>): void;
170
171 /**
172 * Shorthand for `set({typeName, key, fieldName, value})`.

Callers 15

mergeEnumValuesFunction · 0.65
composeResolversFunction · 0.65
cacheResultFunction · 0.65
resolveFieldFunction · 0.65
memoize1Function · 0.65
memoize2Function · 0.65
memoize3Function · 0.65
memoize4Function · 0.65
memoize5Function · 0.65
memoize2of4Function · 0.65
memoize2of5Function · 0.65
astFromSchemaFunction · 0.65

Implementers 1

MockStorepackages/mock/src/MockStore.ts

Calls

no outgoing calls

Tested by 1

listWrapperTransformerFunction · 0.52