Skip to content

MorningK/class-to-graphql-schema-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

class-to-graphql-schema-type

format Java Class to GraphQL Schema Type

Example

Java Class

import io.github.morningk.graphql.NonNull;
import io.github.morningk.graphql.ScalarType;

public class User {

  private Long id;
  public String name;
  public int age;

  @ScalarType("ID")
  @NonNull
  public Long getId() {
    return this.id;
  }
}
import io.github.morningk.graphql.tool.Formatter;

String result = Formatter.formatSchemaType(User.class);

GraphQL Schema Type

type User {
  name: String
  age: Int
  id: ID!
}

About

format Java Class to graphql schema type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages