graphql-compose / graphql-compose/graphql-compose-mongoose
Encounter graphql-compose-relay error when upgrade to 9.0
Open
- 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.