Skip to content

Commit

Permalink
feat: More queries
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat authored and Jason Healy committed Mar 19, 2020
1 parent da07cb2 commit 30ac032
Show file tree
Hide file tree
Showing 2 changed files with 219 additions and 135 deletions.
73 changes: 0 additions & 73 deletions packages/daf-core/src/graphql/graphql-base-type-defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,83 +2,10 @@ export const baseTypeDefs = `
type Query
type Mutation
scalar Date
type Identity {
did: ID!
provider: String
sentMessages: [Message]
receivedMessages: [Message]
issuedPresentations: [Presentation]
receivedPresentations: [Presentation]
issuedCredentials: [Credential]
receivedCredentials: [Credential]
issuedClaims: [Claim]
receivedClaims: [Claim]
}
type Message {
id: ID!
saveDate: Date!
updateDate: Date!
createdAt: Date
expiresAt: Date
threadId: String
type: String!
raw: String
data: String
replyTo: [String]
replyUrl: [String]
from: Identity
to: Identity
metaData: [MetaData]
presentations: [Presentation]
credentials: [Credential]
}
type MetaData {
type: String!
value: String
}
type Presentation {
hash: ID!
raw: String!
issuer: Identity!
audience: Identity!
issuanceDate: Date!
expirationDate: Date
context: [String]
type: [String]
credentials: [Credential]
messages: [Message]
}
scalar CredentialSubject
type Credential {
hash: ID!
raw: String!
issuer: Identity!
subject: Identity!
issuanceDate: Date!
expirationDate: Date
context: [String]
type: [String]
credentialSubject: CredentialSubject
claims: [Claim]
presentations: [Presentation]
messages: [Message]
}
type Claim {
hash: ID!
issuer: Identity!
subject: Identity!
credential: Credential!
type: String!
value: String!
isObj: Boolean
}
`
Loading

0 comments on commit 30ac032

Please sign in to comment.