question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don't treat `id` as a special field unless instructed to do so

See original GitHub issue

Right now, the id field on an object is treated as a globally unique ID no matter what. I think this could cause serious issues for backends where the id property is not unique across types.

It’s probably worth hiding this feature behind a flag somehow so that you can turn it on if you have a relay-like backend, and think about whether we want to handle non-unique IDs, or just build the Apollo Server to make it super easy to use these unique IDs.

@helfer do you think the Relay node spec is something that would be easy to build into the server? One more option is to make the client work with (id, typename) pairs, and not assume id is unique across all objects.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
jbaxleyiiicommented, Apr 12, 2016

@stubailo yep, it’s more idiomatic with redux and doesn’t expose an API that people not using redux might be confused by 🎉

0reactions
johnthepinkcommented, Apr 13, 2016

Sounds good to me!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do-not-resuscitate order: MedlinePlus Medical Encyclopedia
A do-not-resuscitate order, or DNR order, is a medical order written by a doctor. It instructs health care providers not to do ......
Read more >
Methods for De-identification of PHI - HHS.gov
This page provides guidance about methods and approaches to achieve de-identification in accordance with the Health Insurance Portability and Accountability ...
Read more >
Instructions for Completing the CMS 1500 Claim Form
If the item is a medical supply, enter the two-digit manufacturer code in the modifier area after the five-digit medical supply code. 24E....
Read more >
OSHA Forms for Recording Work-Related Injuries and Illnesses
This booklet includes the forms needed for maintaining occupational injury and illness records. Many but not all employers must complete the OSHA injury...
Read more >
FERPA - Protecting Student Privacy
(c) An educational agency or institution must use reasonable methods to identify and authenticate the identity of parents, students, school officials, and any ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found