graphql-compose / graphql-compose/graphql-compose-mongoose

Encounter graphql-compose-relay error when upgrade to 9.0

Open
#280 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
706
Forks
98
PR merge metrics
No merged PRs in 30d

Description

When I upgrade to version 9.0
The relay plugin throw error
```
throw new Error(`ObjectTypeComposer(${tc.getTypeName()}) should have recordIdFn. ` + 'This function returns ID from provided object.');
```

This is my code
```
import { composeMongoose } from 'graphql-compose-mongoose'
import { composeWithRelay } from 'graphql-compose-relay'
const customizationOptions = {}

export const CreateBaseComposer = QueryModel => {
const ModelTC = composeWithRelay(
composeMongoose(QueryModel, customizationOptions)
)
return ModelTC
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.