Skip to content

Typescript error with ts generated file for cacheWrite methods #16

Open
@smblee

Description

@smblee

return apolloCache.writeQuery<${fragmentNamePascalCase}Fragment | null>({ query: ${queryByIdName}Document, variables: { ${entityShortCamelCaseName}Id }, data: (${fragmentNameCamelCase} ? ${fragmentNameCamelCase}Partial : null), broadcast:apolloBroadcast });

image

Running @apollo/client version 3.1.4.

Looks like the types were updated here: apollographql/apollo-client@7202b78#diff-a425d86f9a8376d3071667e3198c940a

The solution here would be to not return the result of apolloCache.writeQuery... ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions