Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Metadata Schema #269

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 77 additions & 2 deletions ent.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
directive @goField(forceResolver: Boolean, name: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
directive @goField(forceResolver: Boolean, name: String, omittable: Boolean) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
directive @goModel(model: String, models: [String!], forceGenerate: Boolean) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
type Attestation implements Node {
id: ID!
type: String!
Expand Down Expand Up @@ -186,6 +186,7 @@ type Dsse implements Node {
statement: Statement
signatures: [Signature!]
payloadDigests: [PayloadDigest!]
metadata: [Metadata!]
}
"""
A connection to a list of items.
Expand Down Expand Up @@ -283,6 +284,80 @@ input DsseWhereInput {
"""
hasPayloadDigests: Boolean
hasPayloadDigestsWith: [PayloadDigestWhereInput!]
"""
metadata edge predicates
"""
hasMetadata: Boolean
hasMetadataWith: [MetadataWhereInput!]
}
type Metadata implements Node {
id: ID!
"""
Key value for the metadata item
"""
key: String!
"""
Value for the metadata item
"""
value: String!
envelope: [Dsse!]
}
"""
MetadataWhereInput is used for filtering Metadata objects.
Input was generated by ent.
"""
input MetadataWhereInput {
not: MetadataWhereInput
and: [MetadataWhereInput!]
or: [MetadataWhereInput!]
"""
id field predicates
"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""
key field predicates
"""
key: String
keyNEQ: String
keyIn: [String!]
keyNotIn: [String!]
keyGT: String
keyGTE: String
keyLT: String
keyLTE: String
keyContains: String
keyHasPrefix: String
keyHasSuffix: String
keyEqualFold: String
keyContainsFold: String
"""
value field predicates
"""
value: String
valueNEQ: String
valueIn: [String!]
valueNotIn: [String!]
valueGT: String
valueGTE: String
valueLT: String
valueLTE: String
valueContains: String
valueHasPrefix: String
valueHasSuffix: String
valueEqualFold: String
valueContainsFold: String
"""
envelope edge predicates
"""
hasEnvelope: Boolean
hasEnvelopeWith: [DsseWhereInput!]
}
"""
An object with an ID.
Expand Down
187 changes: 181 additions & 6 deletions ent/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading