GraphQLRequest.java

  1. package no.nav.data.team.integration.process;

  2. import com.fasterxml.jackson.annotation.JsonAutoDetect;
  3. import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;

  4. import java.util.Map;

  5. @JsonAutoDetect(fieldVisibility = Visibility.ANY)
  6. public record GraphQLRequest(
  7.         String query,
  8.         Map<String, Object> variables
  9. ) {

  10.     public GraphQLRequest(String query) {
  11.         this(query, Map.of());
  12.     }
  13. }