stacker.news/api/typeDefs/vault.js

28 lines
512 B
JavaScript
Raw Normal View History

import { gql } from 'graphql-tag'
export default gql`
2024-10-23 00:53:56 +00:00
type VaultEntry {
id: ID!
key: String!
value: String!
createdAt: Date!
updatedAt: Date!
}
2024-10-23 00:53:56 +00:00
input VaultEntryInput {
key: String!
value: String!
walletId: ID
}
extend type Query {
2024-10-23 00:53:56 +00:00
getVaultEntry(key: String!): VaultEntry
getVaultEntries(keysFilter: [String!]): [VaultEntry!]!
}
extend type Mutation {
clearVault: Boolean
2024-10-23 00:53:56 +00:00
updateVaultKey(entries: [VaultEntryInput!]!, hash: String!): Boolean
}
`