0.4.2 • Published 3 years ago

sltx-nexus-plugin-relay-global-id v0.4.2

Weekly downloads
4
License
MIT
Repository
-
Last release
3 years ago

@jcm/nexus-plugin-relay-global-id

This plugin adds the field method relayGlobalId(fieldName, fieldConfig) to the Nexus Schema Builder, which can be used to create Relay-compliant global IDs.

Sample usage:

const User = objectType({
  name: 'User',
  definition(t) {
    // ...
    t.relayGlobalId('id')
    // ...
  },
})

With the above code, the following schema will be generated:

type User {
  id: ID!
  rawId: ID!
}
# ...
0.4.1

3 years ago

0.4.0

3 years ago

0.4.2

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago