Dynamic key #1081
pnkapadia64
started this conversation in
General
Dynamic key
#1081
Replies: 1 comment
-
It's a general GraphQL question about "dynamic" keys: enum Locale {
en_US
es_ES
}
type Translation {
key: Locale!
value: String!
}
type Foo {
id: Int!
name: [Translation!]!
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm creating a schema for a game that has a translation map for its name. The map could have one of the locale's as its key and the name as its value.
How do we define this field of name in type-graphql?
Beta Was this translation helpful? Give feedback.
All reactions