Skip to content

Custom Directive and specifying the same on a Field and Type #1006

Closed
@prashanthellina

Description

@prashanthellina

I've tried looking at the documentation to figure out how to accomplish this but got no where.

How do I define a schema like this using Graphene?

directive @unique(
  info: String = "Blah blah"
) on FIELD_DEFINITION | ENUM_VALUE

directive @ignore(
  info: String = Blah blah"
) on OBJECT

type ExampleType @ignore(info: "Blah"){
  newField: String
  oldField: String @unique(info: "Blah")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions