graphql-leveler icon indicating copy to clipboard operation
graphql-leveler copied to clipboard

Passing `args` to nested field

Open loganpowell opened this issue 7 years ago • 0 comments

Hi! Thank you for putting this together! I think you've hit on something salient here.

I'm exploring graphql-leveler to solve a problem I'm having and was wondering if there was a way to pass args down the path arg. E.g.:

{
  data: {
    some: {
      deeply: {
        nested: {
          field(<args>): "I am nested!"
        }
      }
    }
  }
}

pass args like:

{
  myProperty: _get(path: "some.deeply.nested.field<args>")
}

loganpowell avatar May 14 '18 17:05 loganpowell