Skip to content

How does SchemaLink fit in here? #31

@luchillo17

Description

@luchillo17

Grabbing the example for Next.js with-apollo-neo4j-graphql before the App router became stable it used to check isServer (typeof window === 'undefined') and based on that create a SchemaLink, which was supposed to use the same GraphQL query as a client instance, but be more efficient (I think it skips the HTTP request and queries the Schema directly, which in this example would be a Neo4jGraphQLSchema, not sure so don't quote me) but also limited to server-side components like SRC or SSR without the "use client" pragma (or whatever this metadata is called).

I'm wondering how this fits in the library since the README.md doesn't mention SchemaLink.

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