Merge pull request #177 from nikolabjelo/develop

Adapted the link fb->strat link to use slug instead of id
This commit is contained in:
nikolabjelo authored and GitHub committed 2019-03-17 20:56:08 +01:00
commit df20196b2b
1 file changed
+3 -3
+3 -3
View File
@@ -21,13 +21,13 @@ export const linkSchemaDefs =
export const resolver = (usersSchema, eventsSchema, strategizerSchema) => ({
teams_FinancialBeings: {
strategy: {
fragment: `fragment StrategyFragment on teams_FinancialBeings{id}`,
resolve ({id: fbId}, args, context, info) {
fragment: `fragment StrategyFragment on teams_FinancialBeings{slug}`,
resolve ({slug: fbSlug}, args, context, info) {
return info.mergeInfo.delegateToSchema({
schema: strategizerSchema,
operation: 'query',
fieldName: 'strategizer_StrategyByFb',
args: { fbId },
args: { fbSlug },
context,
info
})