v4 schemas #22
GreenArrow18
started this conversation in
General
Replies: 1 comment
-
|
I created new repository with new user here https://github.com/PackBytes/pack selectOne is the old schema = selectOne({ field1: bool, field2: bool })
const { encode, decode } = PackBytes(schema)
data = { field1: true }
encode(data) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the equivalent of schemas in v4? Is it union? Or select? What's the difference?
Also, there used to be:
encode(schema_name, data)
How to do this in v4 now?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions