String schema #15
-
From the API: How do I use this properly? I am getting errors when I specify a list of strings as above. const bits = PackBytes.numberToBits(values.length - 1); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Docs needed to be updated, I fixed that and added more of the new types available: schema = string([ 'str1', 'str2', .. ]) // any of specific strings, auto-maps to integer
schema = varint // variable length integer (max integer = 1_073_741_823)
schema = objectid // MongoDB ObjectID
schema = uuid // MongoDB BSON UUID object
schema = date // javascript Date
schema = lonlat // coordinates [ longitude, latitude ] |
Beta Was this translation helpful? Give feedback.
Docs needed to be updated, I fixed that and added more of the new types available: