Skip to content

How to use ID with UUID? #100

Discussion options

You must be logged in to vote

ID is a wrapper around String which is used to differentiate GraphQL ID and String scalar.

ID can be constructed from any String, and is not restricted of what String is built upon.

Pioneer also provide helper methods to UUID to automatically convert it into ID

let id: ID = UUID().toID()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by d-exclaimation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
1 participant