Skip to content

ID field using different name (not id, nor _id) #718

Answered by ianberdin
ianberdin asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, I got it. Sorry.

const liveQueryStore = new InMemoryLiveQueryStore({
    idFieldName: 'pk',
  })
type Todo {
   id: ID! // ! required
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ianberdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant