Questions tagged [resolver]
363 questions
0
votes
1 answer
Delay AWS AppSync Mutation
I did my due diligence in trying to find this answer. But sorry in advance if this is redundant (and thank you in advance for any advice/suggestions/resources):
I'm trying to create a Snapchat clone. I'm using Amplify as my client (to bring together…

Harry Solovay
- 483
- 3
- 14
0
votes
1 answer
Error while trying to run a GraphQL query recursively, along with queried results
This is closely related to my last question here. In short, I have 2 schemas, dbPosts and dbAuthors. They look somewhat like this (I've omitted some fields here for the sake of brevity):
dbPosts
id: mongoose.Schema.Types.ObjectId,
title: { type:…

TheLearner
- 2,813
- 5
- 46
- 94
0
votes
1 answer
AWS appsync query resolver
Currently I have my resolver as a lambda function :
import boto3
from boto3.dynamodb.conditions import Key
def lambda_handler(event, context):
list = []
for device in event['source']['devices'] :
dynamodb = boto3.resource('dynamodb')
…

hounded
- 666
- 10
- 21
0
votes
1 answer
How to use router navigation in a service for resolvers in Angular 6?
I'm using the following ErrorHandleService which is called everytime an error in any service occures.
handleError (operation = 'operation', result?: T) {
return (error: any): Observable => {
const errorBody = error.json();
const…

Sebastian S
- 367
- 1
- 6
- 16
0
votes
1 answer
NGRX + Resolver not working: Component seems to be loading before action is done dispatching
I'm trying to fetch the data from a route and load the data into my state before showing my detail component, and for this reason I have created a resolver. My get request is working, that I know, but it seems as if the api call is done after the…

emmep
- 87
- 1
- 10
0
votes
0 answers
AppSync Optional Resolver
Using AWS AppSync, Graphql and DynamoDB
The following query is causing me an issue.
eventId is an optional field.
When running the below query, records with the optional eventId field trigger an error. I would expect eventId to be null, if the…

Lee
- 5,816
- 6
- 45
- 61
0
votes
2 answers
How to pass an Id from my Typescript to the resolver?
I am trying to figure out how does Angular consumes a getById service.
I start from the very beginning, I have exposed a Rest Api service that returns a Boolean value and checks if an item is in my favorite List or not : it gets the id of an…

C.Gh
- 107
- 2
- 6
0
votes
1 answer
Rails-like autoload in javascript - Allow dependency to require from root package in webpack
I am writing a framework package which I'd like to make it able to auto require modules from the main projects src/. If you are familiar with rails, this is akin to its autoload feature.
So if in your web app you follow a directory convention, say…

btd
- 404
- 3
- 12
0
votes
1 answer
Access route parameters without promise Angular 6
I'm using Angular 6. When i want to use route parameters, I use this code:
this.route.params.subscribe(params => {
// use params now as a object variable
});
But I need to use parameters in service calling. Example I have a service for getting…

Abdol Seed
- 1,227
- 1
- 14
- 23
0
votes
1 answer
Why aren't my GraphQL queries calling my resolvers
I'm following this tutorial on the Apollo blog (here's my forked repo), and I've been going over this for a solid day, and still can't figure out why my resolvers aren't being used, so turning to help here. As near as I can tell, I've tried it…

redOctober13
- 3,662
- 6
- 34
- 61
0
votes
1 answer
GraphQL Resolver for Nested Array of Objects
I am trying to get to grips with the GraphQL schema language as part of a work project. I'm running into problems I think because I'm not sure how to write the resolver for a particular data structure I need to use. I have some data for an…

Drum
- 505
- 1
- 5
- 22
0
votes
1 answer
Getting the data from the resolver in Angular
I want to get some data from the resolver after I do some filtering with the data I get from the backend. Everything works fine with getting the data from the backend and filtering it, but the problem is that I cannot return the final data so I can…

decebal
- 1,151
- 3
- 18
- 38
0
votes
1 answer
apollo-link-state update cache and return async resolver
How to update cache and return async resolver with apollo-link-state.
Example:
import {
LOGIN_FORM_QC as query
} from '../../querys'
import axios from 'axios'
import axiosError from '../axiosError'
import {URL} from '../../config'
const…

someone from belgium is called
- 75
- 1
- 2
- 7
0
votes
1 answer
Angular 2+ resolve route data
I want to return data from API in angular route resolver but if there is any error in API data due to stale token I would refresh the token again and hit the same API.Below is the code for it
import { CommonUtlitiesService } from…

jalak vora
- 139
- 3
- 10
0
votes
1 answer
GraphQL/GraphCool Why do coordinates don't work with FLOAT?
I'm currently working on GraphQL/GraphCool wrapping a RestAPI, but when I write my resolver with Float in order to extract latitude and longitude as floats I get the following error:
"code": 5004,
"message": "Returned JSON Object does not…

ricardoNava
- 685
- 1
- 7
- 26