Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
553 views
in Technique[技术] by (71.8m points)

reactjs - How to use enum type of Apollo Client in react js?

I have a arguments status enum type in my GraphQL i want to input variables and change it by state

const status = ['paid', 'unpaid']

how can i supply this type of variable to my apollo client. Because im having an error it automatic transfroming to string

status: ["paid"] <- Error status: [paid] <- valid enum type

how can i use this without type script?

question from:https://stackoverflow.com/questions/65921109/how-to-use-enum-type-of-apollo-client-in-react-js

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...