Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update schema and queries with new showDiff variable #624

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apollo/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client';

const link = createHttpLink({
// our graphql endpoint, normally here: http://localhost:4142/graphql
uri: 'http://localhost:4000/graphql',
uri: 'http://localhost:4141/graphql',
fetch,
});

Expand Down
4 changes: 2 additions & 2 deletions src/apollo/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export const GET_RUN_METADATA = gql`

/** query for collapsable run details component */
export const GET_RUN_TRACKING_DATA = gql`
query getRunTrackingData($runs: [ID]!) {
runTrackingData(runIDs: $runs) {
query getRunTrackingData($runs: [ID]!, $showDiff: Boolean) {
runTrackingData(runIDs: $runs, showDiff: $showDiff) {
datasetName
datasetType
data
Expand Down
2 changes: 1 addition & 1 deletion src/apollo/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ schema {
type Query {
runsList: [Run]!
runMetadata(runIDs: [ID]!): [Run!]!
runTrackingData(runIDs: [ID]!): [TrackingDataset]!
runTrackingData(runIDs: [ID]!, showDiff: Boolean = false): [TrackingDataset]! # showDiff as true will return all tracked fields amongst compared runs
}

type Subscription {
Expand Down
5 changes: 4 additions & 1 deletion src/apollo/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ const typeDefs = gql`
type Query {
runsList: [Run]!
runMetadata(runIDs: [ID]!): [Run!]!
runTrackingData(runIDs: [ID]!): [TrackingDataset]!
runTrackingData(
runIDs: [ID]!
showDiff: Boolean = false
): [TrackingDataset]!
}

type Subscription {
Expand Down