Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nullable @Reference. #20

Open
1 task
sgr-ksmt opened this issue Oct 14, 2019 · 1 comment
Open
1 task

Support nullable @Reference. #20

sgr-ksmt opened this issue Oct 14, 2019 · 1 comment
Labels
FR New feature or request

Comments

@sgr-ksmt
Copy link
Owner

FireSnapshot does not currently support nullable @Reference.
So, the code that like below will be failed to decode.

struct Model: SnapshotData {
    var name: String
    @Reference<User> var user = nil
}
{
  "name": "Mike",
}

(user: undefined)


But, another code that like below will be succeeded.

struct Model: SnapshotData {
    var name: String
    @Reference<User> var user = nil
}
{
  "name": "Mike",
  "user": null
}

ToDo

  • Implement NullableReference that is allowed {key: undefined}.
@sgr-ksmt sgr-ksmt added the FR New feature or request label Oct 14, 2019
@SebastianBO
Copy link

Is this done? Moving away from Ballcap-Firestore to this - are you motivated to keep on going? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FR New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants