Skip to content

Toolbox: When a limit exists on a previous tab's query, a new tab will enter the previous tab's query again #9

@mjfwebb

Description

@mjfwebb

Describe the bug

When a limit exists on a previous tab's query, a new tab will enter the previous tab's query again

Type definitions
Some simple type definitions:

type Movie @node {
  title: String!
  actors: [Person!]! @relationship(type: "ACTED_IN", direction: IN)
}

type Person @node {
  name: String
  movies: [Movie!]!
}

To Reproduce
Steps to reproduce the behavior:

  1. In GraphQL Toolbox build a schema and go to the query tab
  2. Enter a query which includes a limit option, like this:
query MyQuery {
  movies(limit: 10) {
    title
  }
}
  1. Add a new tab with the + button, it will look normal and empty
  2. Start entering text (more than one character, to go beyond the initial intellisense) into the blank query input
  3. You'll now see the previous tab's query again and you'll be editing the limit option

Expected behavior
Nothing from the previous tab should be carried over.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions