DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
GraphQL Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
GraphQL
When should pubsub.publish() be called relative to a mutation's actual database write?
A
Before the write, to notify subscribers as early as possible
B
AFTER the write has genuinely succeeded, to avoid notifying subscribers about data that doesn't exist or fails to save
C
publish() timing doesn't matter
D
Only during the write, never before or after
Check Answer