Class Query

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action

    public class Query
    extends Object
    implements org.apache.karaf.shell.api.action.Action
    Sample calls: graphql:query "{books { name }}" graphql:query "{bookById(id:\"1\") { name id pageCount }}" graphql:query "mutation { addBook(name:\"Lord of the Rings\" pageCount:100) { id name }}
    • Constructor Detail

      • Query

        public Query()
    • Method Detail

      • execute

        public Object execute()
                       throws Exception
        Specified by:
        execute in interface org.apache.karaf.shell.api.action.Action
        Throws:
        Exception