Skip to content

Include GraphQLValidObjectLocations annotation by default #44

@danadajian

Description

@danadajian

Following #42, if a type or an input does not have a matching pair, we need to add the @GraphQLValidObjectLocations annotation with the corresponding input or output location.

Given

type MyType {
  myField: String
}

input MyInput {
  myField: String
}

generate

@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT])
data class MyType(
  myField: String? = null
)

@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.INPUT_OBJECT])
data class MyInput(
  myField: String? = null
)

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