Skip to content

Commit

Permalink
add utility method for graphql queries
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBredl committed Apr 17, 2024
1 parent 6b4c4fd commit e63809d
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package de.unistuttgart.iste.meitrex.common.util;

import lombok.NoArgsConstructor;
import org.intellij.lang.annotations.Language;

@NoArgsConstructor(access = lombok.AccessLevel.PRIVATE)
public class GraphQlUtil {

/**
* This method is used to mark a string as a GraphQl.
* This is useful for IntelliJ IDEA to provide syntax highlighting and code completion.
*
* @param graphQl the GraphQl string
* @return the GraphQl string
*/
public static String gql(@Language("GraphQl") final String graphQl) {
return graphQl;
}
}

0 comments on commit e63809d

Please sign in to comment.