Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

graphql-java

Validation error of type SubSelectionRequired: Sub selection required for type null of field

September 20, 2023 by Tarik

When requesting a field that resolves to an object type (or a list of an object type), you have to specify the fields on that object type as well. The list of fields for a particular field (or the root) is called a selection set or a sub selection and is wrapped by a pair … Read more

Categories graphql Tags graphql, graphql-java Leave a comment

How to expose graphql field with different name

May 1, 2023 by Tarik

You can use GraphQL Aliases to modify individual keys in the JSON response. If this is your original query query { POJO { id name } } you can introduce a GraphQL alias userName for the field name like so: query { POJO { id userName: name } } You can also use GraphQL aliases … Read more

Categories graphql Tags graphql, graphql-java Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa