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

Path select selects nothing #199

Open
LorenzoSantoro94 opened this issue Oct 16, 2024 · 0 comments · May be fixed by #203
Open

Path select selects nothing #199

LorenzoSantoro94 opened this issue Oct 16, 2024 · 0 comments · May be fixed by #203

Comments

@LorenzoSantoro94
Copy link

Description

Path select (eg .select('path.to.prop')) doesn't select anything even if property exists

Steps to reproduce

Application:

db.collection('collection').select('b.c').get()

Test:

mockFirebase({
  database: {
    collection: [{
      a: true,
      b: {
        c: true
      }
    }]
  }
})

Expected result

Query should return {b: {c: true}}

Actual result

Actually returns an empty object

@LorenzoSantoro94 LorenzoSantoro94 linked a pull request Dec 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant