Skip to content

Commit

Permalink
upgrade GraphQL queries for nextline-graphql 0.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Jul 28, 2023
1 parent 8ab7ecb commit dc79fe5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/components/main/run-frame/top-bar/SpanRunNoState.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ const continuousEnabledSubscription = useContinuousEnabledSubscription();
const continuousEnabled = computed(
() =>
continuousEnabledSubscription.data?.value?.continuousEnabled ||
continuousEnabledQuery.data?.value?.continuous.continuousEnabled
continuousEnabledQuery.data?.value?.continuousEnabled
);
</script>
26 changes: 6 additions & 20 deletions src/gql/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ export type HistoryTracesArgs = {

export type Mutation = {
__typename?: 'Mutation';
continuous: MutationContinuous;
exec: Scalars['Boolean']['output'];
interrupt: Scalars['Boolean']['output'];
kill: Scalars['Boolean']['output'];
reset: Scalars['Boolean']['output'];
runAndContinue: Scalars['Boolean']['output'];
schedule: MutationSchedule;
sendPdbCommand: Scalars['Boolean']['output'];
terminate: Scalars['Boolean']['output'];
Expand All @@ -88,11 +88,6 @@ export type MutationAutoMode = {
turnOn: Scalars['Boolean']['output'];
};

export type MutationContinuous = {
__typename?: 'MutationContinuous';
runAndContinue: Scalars['Boolean']['output'];
};

export type MutationSchedule = {
__typename?: 'MutationSchedule';
autoMode: MutationAutoMode;
Expand Down Expand Up @@ -163,7 +158,7 @@ export type PromptingData = {

export type Query = {
__typename?: 'Query';
continuous: QueryContinuous;
continuousEnabled: Scalars['Boolean']['output'];
exception?: Maybe<Scalars['String']['output']>;
hello: Scalars['String']['output'];
history: History;
Expand Down Expand Up @@ -191,11 +186,6 @@ export type QueryAutoMode = {
state: Scalars['String']['output'];
};

export type QueryContinuous = {
__typename?: 'QueryContinuous';
continuousEnabled: Scalars['Boolean']['output'];
};

export type QuerySchedule = {
__typename?: 'QuerySchedule';
autoMode: QueryAutoMode;
Expand Down Expand Up @@ -337,7 +327,7 @@ export type ResetMutation = { __typename?: 'Mutation', reset: boolean };
export type RunAndContinueMutationVariables = Exact<{ [key: string]: never; }>;


export type RunAndContinueMutation = { __typename?: 'Mutation', continuous: { __typename?: 'MutationContinuous', runAndContinue: boolean } };
export type RunAndContinueMutation = { __typename?: 'Mutation', runAndContinue: boolean };

export type SendPdbCommandMutationVariables = Exact<{
command: Scalars['String']['input'];
Expand All @@ -356,7 +346,7 @@ export type TerminateMutation = { __typename?: 'Mutation', terminate: boolean };
export type QContinuousEnabledQueryVariables = Exact<{ [key: string]: never; }>;


export type QContinuousEnabledQuery = { __typename?: 'Query', continuous: { __typename?: 'QueryContinuous', continuousEnabled: boolean } };
export type QContinuousEnabledQuery = { __typename?: 'Query', continuousEnabled: boolean };

export type ExceptionQueryVariables = Exact<{ [key: string]: never; }>;

Expand Down Expand Up @@ -497,9 +487,7 @@ export function useResetMutation() {
};
export const RunAndContinueDocument = gql`
mutation RunAndContinue {
continuous {
runAndContinue
}
runAndContinue
}
`;

Expand All @@ -526,9 +514,7 @@ export function useTerminateMutation() {
};
export const QContinuousEnabledDocument = gql`
query QContinuousEnabled {
continuous {
continuousEnabled
}
continuousEnabled
}
`;

Expand Down
4 changes: 1 addition & 3 deletions src/graphql/mutations/RunAndContinue.gql
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
mutation RunAndContinue {
continuous {
runAndContinue
}
runAndContinue
}
4 changes: 1 addition & 3 deletions src/graphql/queries/ContinuousEnabled.gql
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
query QContinuousEnabled {
continuous {
continuousEnabled
}
continuousEnabled
}

0 comments on commit dc79fe5

Please sign in to comment.