-
Notifications
You must be signed in to change notification settings - Fork 0
Temp: First version GCD module #1
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
base: main
Are you sure you want to change the base?
Conversation
joente
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a re-build is required because I added a small change to th build script. (for running on alpine linux)
joente
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should expose three functions: get, upsert and delete and set the corresponding cmd value as default. We then can accept the following argumets:
Get:
["get", "*"]Upsert:
["upsert", "*"]Delete:
["delete", "*"]This way the example can be as follow:
gcd.get({
entities: [
{
key: {
id: 3,
namespace: 'test',
kind: 'Test',
parent: {
kind: 'Parent',
id: 2,
namespace: 'test',
}
},
}
],
kind: 'Test',
namespace: 'test',
}).then(|res| {
res; // just return the response.
});
No description provided.