diff --git a/.changeset/lovely-news-search.md b/.changeset/lovely-news-search.md new file mode 100644 index 0000000..37552b9 --- /dev/null +++ b/.changeset/lovely-news-search.md @@ -0,0 +1,5 @@ +--- +"@frontside/hydraphql": patch +--- + +Fix helper name typos diff --git a/src/core/resolveDirectiveMapper.ts b/src/core/resolveDirectiveMapper.ts index c8d4e72..fd83a35 100644 --- a/src/core/resolveDirectiveMapper.ts +++ b/src/core/resolveDirectiveMapper.ts @@ -12,7 +12,7 @@ import { createConnectionType, decodeId, encodeId, - getNoteTypeForConnection, + getNodeTypeForConnection, isConnectionType, isNamedListType, unboxNamedType, @@ -41,7 +41,7 @@ export function resolveDirectiveMapper( if (isConnectionType(field.type)) { if (directive.nodeType && typeof directive.nodeType === "string") { - const nodeType = getNoteTypeForConnection( + const nodeType = getNodeTypeForConnection( directive.nodeType, (name) => api.typeMap[name], (name, type) => (api.typeMap[name] = type), diff --git a/src/helpers.ts b/src/helpers.ts index c5ed523..5beac57 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -87,7 +87,7 @@ export function createConnectionType( }); } -export function getNoteTypeForConnection( +export function getNodeTypeForConnection( typeName: string, getType: (name: string) => GraphQLNamedType | undefined, setType: (name: string, type: GraphQLNamedType) => void,