How to add GraphQL variables object inside parent variable

I have a GraphQL query that requires an input variable as follows:

query GetTagsByFamily($tagsByFamilyInput: tagsByFamilyInput!){
  tags(tagsByFamilyInput: $tagsByFamilyInput) {
    id
    slug
    status
  }
}

The definition of the tagsByFamilyInput variable is as follows:

    "tagsByFamilyInput": {
      "id": String!,
      "slug": String!
    }

I'm trying to work out how I can pass these variables. In the Variables panel, I don't have the option of creating an object inside the variable. So is there a way to do this?

Hi @blackge

Is either hardcoding an object or passing it to the variable field using {{}} not working?

Hi,

I figured it out in the end. I started by hardcoding and once I got that working, was able to pass variable fields in. I thought I had to just pass key value pairs in the variables, but I can include an object, so that works fine.

Thanks!