ent icon indicating copy to clipboard operation
ent copied to clipboard

configurable __metadata

Open lolopinto opened this issue 1 year ago • 0 comments

instead of canViewerSee, canViewerDo, canViewerEdit etc

might make sense to have a configurable __metadata field that developer can hook into to add their own types|fields which returns fields and values for these and more

e.g.


type User {
  __metadata: UserMetadata!
}

type UserMetadata {
  fields: [UserMetadataInfo!]!
}

type UserMetadataInfo {
  name: String!
  type: ENUM # string, int, etc or something else that lets us know how to format on client if possible
  canViewerSee: Boolean!
  canViewerEdit: Boolean!
  # below added by developer
  creationTime: Time!
  karma: Int! 
  indexed: Boolean!
}

lolopinto avatar Jul 17 '23 18:07 lolopinto