nteract / graphql-schema-exploration

Exploring a GraphQL schema for notebooks
https://gql-explore.nteract.io/
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

mock more data #3

Closed rgbkrk closed 5 years ago

rgbkrk commented 5 years ago

Starting out with some mocks.

query randCell {
  randomCell {
    cellType:__typename
    ...codeCellGunk
    ...markdownCellGunk
  }
}

query randO {
  randomOutput {
    outputType:__typename
    ...streamGunk
    ...displayDataGunk
  }
}

fragment codeCellGunk on CodeCell {
  source
  metadata
  outputs {
    ...streamGunk
    ...displayDataGunk
  }
}

fragment markdownCellGunk on MarkdownCell {
  source
  metadata
}

fragment streamGunk on StreamOutput {
  name
  text
}

fragment displayDataGunk on DisplayData {
  data
  metadata
}

Something I think worth doing is setting up now.sh for this repo. I'll go ahead and do that.