Fork me on GitHub
#pathom
<
2019-04-26
>
codonnell02:04:24

@wilkerlucio I'd like to build a graphql query which has a vector of enums in its params. It's my understanding that symbols in EQL queries are translated into enums in graphql queries, but that doesn't seem to be the case if they're in a vector inside the params. For example,

[{(gql/build-thing {:columns [id name description]}) [:clientMutationId]}]
is compiled into
mutation {
  build-thing(columns: ["id","name","description"]) {
    clientMutationId
  }
}
when (I think) it should be compiled into
mutation {
  build-thing(columns: [id, name, description]) {
    clientMutationId
  }
}
Is my interpretation of the query->graphql translation correct? If so, I'm happy to submit a little PR that takes care of this. If not, is there some other way I don't see to get a vector of enums into graphql params?

wilkerlucio02:04:54

@codonnell yes, your interpretation is correct, if it was symbols it should be using the ENUM way out, glad to take a PR to fix