Skip to content

Commit

Permalink
feat: Added save to GQL handleMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Apr 1, 2020
1 parent 49e6841 commit be23418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/daf-core/src/graphql/graphql-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const resolvers = {
Mutation: {
handleMessage: async (
_: any,
args: { raw: string; metaData?: [{ type: string; value?: string }] },
args: { raw: string; metaData?: [{ type: string; value?: string }]; save: boolean },
ctx: Context,
) => ctx.agent.handleMessage(args),
},
Expand Down Expand Up @@ -254,7 +254,7 @@ export const typeDefs = `
value: String
}
extend type Mutation {
handleMessage(raw: String!, meta: [MetaDataInput]): Message
handleMessage(raw: String!, meta: [MetaDataInput], save: Boolean = true): Message
}
Expand Down

0 comments on commit be23418

Please sign in to comment.