From d9490198b168a172829c13479133ffefe3ef3c54 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Mon, 10 Aug 2020 17:09:05 +0200 Subject: [PATCH] Give QueryAPI GraphQL descriptors (#2) Give QueryAPI GraphQL descriptors Reviewed-on: https://git.etztech.xyz/Minecraft/ServerAPI/pulls/2 --- src/main/java/xyz/etztech/serverapi/web/api/QueryAPI.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/xyz/etztech/serverapi/web/api/QueryAPI.java b/src/main/java/xyz/etztech/serverapi/web/api/QueryAPI.java index b343e9f..348215e 100644 --- a/src/main/java/xyz/etztech/serverapi/web/api/QueryAPI.java +++ b/src/main/java/xyz/etztech/serverapi/web/api/QueryAPI.java @@ -1,9 +1,12 @@ package xyz.etztech.serverapi.web.api; +import com.expediagroup.graphql.annotations.GraphQLDescription; import com.expediagroup.graphql.annotations.GraphQLName; import com.fasterxml.jackson.annotation.JsonProperty; import org.bukkit.Server; +@GraphQLName("Query") +@GraphQLDescription("Query GraphQL") public class QueryAPI { private final String type; private final String version;