Skip to content

Instantly share code, notes, and snippets.

@dmi3coder
Created April 29, 2020 08:58
Show Gist options
  • Save dmi3coder/0537eefc27ac65b10d6691afbcedf01a to your computer and use it in GitHub Desktop.
Save dmi3coder/0537eefc27ac65b10d6691afbcedf01a to your computer and use it in GitHub Desktop.
Data classes for Quarkus GraphQL example
package net.quarkify.data;
public class Team {
public Long id;
public String name;
public User[] users;
public Team(Long id, String name, User... users) {
this.id = id;
this.name = name;
this.users = users;
}
}
package net.quarkify.data;
public class User {
public Long id;
public String name;
public User(Long id, String name) {
this.id = id;
this.name = name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment