Skip to content

Commit

Permalink
Using the Enums in the query.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivydeliz committed Dec 19, 2024
1 parent 373ebc6 commit b7cc98a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utilities/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export enum Queries {
GET_SEQUENCE_SEQ_JSON = 'getSequenceSeqJson',
GET_USER_SEQUENCE_SEQ_JSON = 'getUserSequenceSeqJson',
INSERT_ACTIVITY_DIRECTIVE = 'insert_activity_directive_one',
INSERT_ACTIVITY_DIRECTIVES = 'insert_activity_directive',
INSERT_ACTIVITY_DIRECTIVE_TAGS = 'insert_activity_directive_tags',
INSERT_ACTIVITY_PRESET = 'insert_activity_presets_one',
INSERT_CHANNEL_DICTIONARY = 'insert_channel_dictionary_one',
Expand Down Expand Up @@ -197,6 +198,7 @@ export enum Queries {
TAGS = 'tags',
TOPIC = 'topic',
UPDATE_ACTIVITY_DIRECTIVE = 'update_activity_directive_by_pk',
UPDATE_ACTIVITY_DIRECTIVES = 'update_activity_directive_many',
UPDATE_ACTIVITY_PRESET = 'update_activity_presets_by_pk',
UPDATE_CONSTRAINT_METADATA = 'update_constraint_metadata_by_pk',
UPDATE_CONSTRAINT_SPECIFICATION = 'update_constraint_specification_by_pk',
Expand Down Expand Up @@ -336,7 +338,7 @@ const gql = {

CREATE_ACTIVITY_DIRECTIVES: `#graphql
mutation CreateActivityDirectives($activityDirectivesInsertInput: [activity_directive_insert_input!]!) {
insert_activity_directive(objects: $activityDirectivesInsertInput) {
${Queries.INSERT_ACTIVITY_DIRECTIVES}(objects: $activityDirectivesInsertInput) {
returning {
id
type
Expand Down Expand Up @@ -3462,7 +3464,7 @@ const gql = {

UPDATE_ACTIVITY_DIRECTIVES: `#graphql
mutation UpdateActivityDirective($updates: [activity_directive_updates!]!) {
update_activity_directive_many(
${Queries.UPDATE_ACTIVITY_DIRECTIVES}(
updates: $updates
) {
affected_rows
Expand Down

0 comments on commit b7cc98a

Please sign in to comment.