memdocstore - clarification in documentation

14 views
Skip to first unread message

Amit Saha

unread,
Aug 10, 2021, 8:15:57 AM8/10/21
to go-cloud
In the documentation for memdocstore, we have this text [1]


"You can instead supply a function to construct the primary key from the document contents with memdocstore.OpenCollectionWithKeyFunc. This can be useful for documents whose name is the combination of two or more fields."


I am a bit confused here. I think what this is trying to say is this is useful where the primary key field is obtained by a combination of fields which will eventually be stored in the documents in this collection.


>This can be useful for documents whose name is the combination of two or more fields."


Should "name" be "primary key"?


Thanks,
Amit.


[1] This can be useful for documents whose name is the combination of two or more fields."



Reply all
Reply to author
Forward
0 new messages