Questions tagged [resolver]

363 questions
39
votes
2 answers

What does the Resolver param in nginx do?

I am using nginx as a reverse_proxy server with ELB. I am looking for explanation regarding the resolver value I set in the nginx.conf file. My nginx.conf: http { ... resolver x.x.x.x valid=30s; ... } server { ... set $elb…
guyyug
  • 897
  • 1
  • 11
  • 23
36
votes
16 answers

Python DNS module import error

I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the installation does not seem to be working. $ python --version Python…
ayushmad
  • 619
  • 1
  • 6
  • 9
34
votes
2 answers

Angular2, testing and resolved data: How to test ngOnInit?

I'm working through the Angular2 testing guide and wish to write a test for the ngOnInit() function. The one from the Routing section of the programming guide has this format: let org: Org = null; ngOnInit(): void { let that = this; …
Jerome P Mrozak
  • 1,907
  • 4
  • 21
  • 33
25
votes
3 answers

nginx resolver -- dns

Please excuse a very beginner question. I'm having trouble understanding the nginx 'resolver' parameter and how it works. I have read the documentation, searched tutorials and posts (using keywords like resolver, nginx, and dns), and I'm still not…
Geekomancer
  • 439
  • 1
  • 4
  • 11
23
votes
1 answer

How to get a cursor for pagination in Graphql from a database?

I am having terrible problems getting a real cursor for resolving a database pagination result in GraphQL. No matter what kind of database (SQL e.g. mysql or NoSQL document e.g. mongodb) I am using, there is no way, I seem to be able to get a cursor…
LongHike
  • 4,016
  • 4
  • 37
  • 76
18
votes
3 answers

How to trigger route resolver manually

I'm resolving a user before accessing the account fragment of my user page : app-routing.component.ts { path: 'users/:id', component: UserComponent, resolve: {user: UsersService}, children: [ {path: '', pathMatch: 'full', redirectTo:…
Max
  • 696
  • 2
  • 9
  • 24
15
votes
1 answer

NGINX - Using variable in proxy_pass breaks routing

I'm trying to get NGINX's resolver to automatically update the DNS resolution cache, so I'm transitioning to using a variable as the proxy_pass value to achieve that. However, when I do use a variable, it makes all requests go to the root endpoint…
ev0lution37
  • 1,129
  • 2
  • 14
  • 28
15
votes
1 answer

Angular2 Exploring Resolved Data in canActivate Guard?

Is it possible to access resolved data of a route (-Resolver) inside a canActivate guard. Currently I can access the resolved data in the component by ngOnInit() { this.route.data .subscribe((data: { example: Array }) => { …
Max Solid
  • 1,213
  • 3
  • 21
  • 32
14
votes
2 answers

How to know which fields were requested in a GraphQL query?

I have written a GraphQL query which like the one below: { posts { author { comments } comments } } I want to know how can I get the details about the requested child fields inside the posts resolver. I want to do it to avoid…
WitVault
  • 23,445
  • 19
  • 103
  • 133
14
votes
1 answer

AutoMapper - how to use custom value resolver inside custom type converter

How can I use custom value resolvers inside custom type converter? Currently, it seems to me hard to achieve. Do you know a way to how I can use this class? Person converter class PersonConverter : ITypeConverter { public…
Pawel Maga
  • 5,428
  • 3
  • 38
  • 62
13
votes
2 answers

Pass result of one resolve to another with Angular Router

I know how to create multiple resolve classes for a route but I don't know how to pass the result of one resolve to another resolve. // Example Route { path: 'book/:id', component: BookComponent, resolve: { document: BookResolve, …
Justin
  • 4,203
  • 7
  • 41
  • 58
12
votes
1 answer

GraphQL buildSchema vs GraphQLObjectType

I went through GraphQL's Object Types tutorial and then read through the Constructing Types part of the docs. I did a similar style trial by creating a simplecase convention converter. Why? To learn :) When converting to using GraphQLObjectType, I…
Michael Bruce
  • 10,567
  • 2
  • 23
  • 31
12
votes
3 answers

angular 2 resolver for every view

So my application is based on angular 2(angular cli) and some CMS. Some fragments of page are downloaded from CMS and displayed on angular 2 page. The main problem is that the header and footer are from CMS. So I wonder how to add global…
11
votes
4 answers

how to retrieve nested properties in groovy

I'm wondering what is the best way to retrieve nested properties in Groovy, taking a given Object and arbitrary "property" String. I would like to something like this: someGroovyObject.getProperty("property1.property2") I've had a hard time…
Nathan Beach
  • 2,497
  • 2
  • 24
  • 25
11
votes
1 answer

resolver with parameter on resolve method

So I implemented a resolver in angular 5: @Injectable() export class AppResolver implements Resolve { constructor(private myService: MyService) { } resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot):…
annepic
  • 1,147
  • 3
  • 14
  • 24
1
2 3
24 25