their own network request • Minimal round-trips was one of our selling points of GraphQL • Many components need (at least partially) the same data Simple solution But not perfect...
both: • Strong domain knowledge • GraphQL understanding and experience • Separate schema into domains • Apollo Gateway an option now! • We still want one unified Graph • That is consistent • Doesn’t overlap • Still have core GraphQL team
args, context, info) { // Start a segment for each resolver in NewRelic return newrelic.startSegment( `GraphQL/${info.parentType}.${info.fieldName}`, // Include the segment as a custom metric true, // The function being tracked, wrap the resolver () => Promise.resolve(resolve(parent, args, context, info)); ); }