I saw amplify documentation there a sample to get a single post like this:
private GraphQLRequest<Todo> getTodoRequest(String id) { String document = "query getTodo($id: ID!) { " + "getTodo(id: $id) { " + "id " + "name " + "}" + "}"; return new SimpleGraphQLRequest<>( document, Collections.singletonMap("id", id), Todo.class, new GsonVariablesSerializer()); }
How to write the same code for list post?
No has iniciado sesión. Iniciar sesión para publicar una respuesta.
Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.