NoSQL Data structure to select subset of fields with Firebase and query

后端 未结 1 893
野的像风
野的像风 2021-01-26 13:30

I’m creating a NoSQL database using Firebase, but as I’m a SQL thinker my mind needs some advices about Firebase queries and NoSQL Data Structure.

I am making some exper

1条回答
  •  滥情空心
    2021-01-26 14:15

    Firebase clients always retrieve complete nodes. There is no way to get just a subset of the properties of a node.

    As usual: if you are having problems implementing your use-case on the data model, change the data model to fit your use-case. So in this case, that means that you could split off the name and thumbnail into a separate node.

    MadeListinfo : {
      Id : {
        Name: string
        Thumb: base64 56x56 pixels (image)
      }
    }
    

    0 讨论(0)
提交回复
热议问题