query compare($organization: ID!, $project: ID!, $target: ID!, $version: ID!) {
  schemaCompareToPrevious(
    selector: { organization: $organization, project: $project, target: $target, version: $version }
  ) {
    __typename
    ...SchemaCompareResultFields
    ...SchemaCompareErrorFields
  }
  schemaVersion(selector: { organization: $organization, project: $project, target: $target, version: $version }) {
    __typename
    ...SchemaVersionFields
  }
}
