1 2 3 4 5 6 7 8 9 10 11 12
const user = new schema.Entity('users'); const comment = new schema.Entity('comments', { commenter: user, }); const article = new schema.Entity('articles', { author: user, comments: [comment], }); const normalizedData = normalize(data, article);
Powered by RunKit
Node 10
help
run