Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix links #392

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Helper functions are provided for both building the GraphQL types for connection
- `offsetToCursor` takes the index of a member object in an array and returns an opaque cursor for use in the mutation payload.
- `cursorToOffset` takes an opaque cursor (created with `offsetToCursor`) and returns the corresponding array index.

An example usage of these methods from the [test schema](src/__tests__/starWarsSchema.js):
An example usage of these methods from the [test schema](src/__tests__/starWarsSchema.ts):

```js
var { connectionType: ShipConnection } = connectionDefinitions({
Expand Down Expand Up @@ -73,7 +73,7 @@ Helper functions are provided for both building the GraphQL types for nodes and
- `globalIdField` creates the configuration for an `id` field on a node.
- `pluralIdentifyingRootField` creates a field that accepts a list of non-ID identifiers (like a username) and maps them to their corresponding objects.

An example usage of these methods from the [test schema](src/__tests__/starWarsSchema.js):
An example usage of these methods from the [test schema](src/__tests__/starWarsSchema.ts):

```js
var { nodeInterface, nodeField } = nodeDefinitions(
Expand Down Expand Up @@ -110,7 +110,7 @@ A helper function is provided for building mutations with single inputs and clie

- `mutationWithClientMutationId` takes a name, input fields, output fields, and a mutation method to map from the input fields to the output fields, performing the mutation along the way. It then creates and returns a field configuration that can be used as a top-level field on the mutation type.

An example usage of these methods from the [test schema](src/__tests__/starWarsSchema.js):
An example usage of these methods from the [test schema](src/__tests__/starWarsSchema.ts):

```js
var shipMutation = mutationWithClientMutationId({
Expand Down