Questions tagged [resolver]

363 questions
6
votes
2 answers

How to remove items from publishing using a Tridion Resolver?

I am trying to do implement a custom resolver for a component as described here by Chris: http://www.tridiondeveloper.com/the-story-of-sdl-tridion-2011-custom-resolver-and-the-allowwriteoperationsintemplates-attribute I want to remove some of the…
user1373140
  • 489
  • 2
  • 8
6
votes
2 answers

How to update conflict resolver when upgrading from SQL-Server 2005 to SQL-Server 2008

We have recently upgraded from SQL Server 2005 to SQL Server 2008 (R2, SP1). This upgrade included some publications, where all tables are published with a default conflict resolver based on the "later wins" principle. Its smart name is 'Microsoft…
5
votes
1 answer

boost::asio::ip::tcp::resolver::resolve() blocks forever

I'm trying to create something similar as this code found at the boost.asio examples. socket.h: class some_class { private: ... boost::asio::io_service io_service; public: some_class() { /* This stuff isn't used in…
Daniel Sloof
  • 12,568
  • 14
  • 72
  • 106
5
votes
0 answers

Sort results of graphql resolver after all field resolver finished

I'd like to search, filter, order over an in memory result which is aggregated from data of a local database and data from an external api. This is my example resolver. const resolver = { Query: { allDevices: (_, args: QueryArgs,…
riemerio
  • 101
  • 7
5
votes
1 answer

Create a angular resolver for multiple usage

Im looking for a way to use one angular route resolve to use on all of my routes, but with different parameters: currently, i have something like: { path: 'user/:any', component: UserprofileComponent, resolve: {…
maria
  • 207
  • 5
  • 22
  • 56
5
votes
2 answers

Proper way to resolve the app component in Angular 2

I am working on an application that pulls its site copy based on the domain. I have the app working with one exception. I am defining the navbar and footer of the application in the app.component template like below.
TyAnthoney
  • 278
  • 4
  • 12
5
votes
1 answer

jax-rs ContextResolver undestanding

But I was trying to understand the usage of Providers in jax-rs. But was not able to understand how ContextResolver can be used. Can someone explain this with some basic example?
Jayendra Gothi
  • 682
  • 2
  • 11
  • 26
5
votes
1 answer

Resolving intent for URL is sometimes null, throws NullPointerException

I have an Android app that does this: PackageManager pm = getApplicationContext().getPackageManager(); Intent browserIntent = new Intent(); browserIntent.setAction(Intent.ACTION_VIEW); …
AWT
  • 3,657
  • 5
  • 32
  • 60
5
votes
2 answers

How to determine publishing user / access Engine in custom resolver

To enable custom user preferences during publishing we would like to find out in the resolve step (inside a custom resolver) what the publishing user is (so not the user account configured for the Publisher service but the user that initiated the…
Bjørn van Dommelen
  • 1,057
  • 7
  • 13
4
votes
0 answers

How can i test the nestjs-graphql resolver with guard?

This is a sample code of resolver and i want to test this with the jest on nestJS. @Resolver() export class UserResolver { constructor(private readonly userService: UserService) {} @UseGuards(GqlAccessGuard) @Query(() => User) async…
손설희
  • 41
  • 3
4
votes
3 answers

How to get requested GraphQL fields in C#?

I'm working on a GraphQL -> SQL parser that includes some joins, so it makes a performance difference whether a certain field is requested. Is there a way to find that out? I'm learning about object types, so I think it might have something to do…
Oleksiy
  • 37,477
  • 22
  • 74
  • 122
4
votes
2 answers

Using Resolver to Register a View Model with "@Main Actor" Annotation

My view model has multiple functions that use Task in order to execute use cases. I use the "@Main Actor" annotation for publishing UI updates on the main thread. I get an error when trying to register the view model in Resolver. Is there a way to…
4
votes
5 answers

python dns.resolver get DNS record type

I am learning how to use the python dns object. Quick question as I see many examples show methods of using the dns.resolver method with the DNS record type(CNAME, NS, etc). Is there a way to use this dns object to query a DNS name and pull it's…
Jim
  • 613
  • 6
  • 16
  • 25
4
votes
1 answer

Apollo Client resolver only triggers once

I'm currently working on a react app, that uses a GraphQL backend and has additional local state. I am using a resolver to resolve a local field that changes over time but the resolver is only triggered once. I tried to use cache.readQuery to…
4
votes
0 answers

Running a graphql query from inside a resolver - for nested data

I am implementing an apollo server graphql schema. All my schema definition are modules in .graphql files. All my resolvers are modules in .js files. I have the following type : productSchema.graphql type Product { _id: Int company: Company …
1 2
3
24 25