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
Unify GRPC client docs #168
Conversation
oskardudycz
commented
Dec 7, 2020
•
edited
edited
- Copied docs from the .NET Client
- Added missing NodeJS Samples
- Fixed current NodeJS to work, configured ES6 modules.
- Added missing .NET GRPC client samples
0d3d274
to
b40c2fc
Compare
Moved go sample into dedicated folder following the NodeJS pattern Replaced hardcoded connection string NodeJS sample with reference to the sample
…esponsible for maintaining that Copied .NET client samples for reading, writing and subscribing
…ed packages versions. Added links to samples in README
56bf59f
to
c136074
Compare
Updated wording to remove .NET specifics
|
https://deploy-preview-168--developers-eventstore.netlify.app/clients/grpc/appending-events/#eventid
const prefixes = ["customer-"];
- const filter = { filterOn: EVENT_TYPE, prefixes };
+ const filter = eventTypeFilter({ prefixes }); |
Fixed typo and missing image in appending-events/README.md
366f7a2
to
075e013
Compare
…de filtering samples
Fixed in 075e013#diff-1e19e6c67c68a571656c7425340cce9e7981c98cc1e80c3f12969f46745575faR34
I removed the whole sentence, as it didn't bring much value (even for C# dev) 70da36c.
Changed in 8f969b7#diff-2e65e44b56dcbda89b84f68489f70b28e7dddc3e75a78d513239e2bdc93b7183L38.
Fixed in 075e013#diff-1e19e6c67c68a571656c7425340cce9e7981c98cc1e80c3f12969f46745575faR51.
Yes, we do. I added PR for that EventStore/EventStore-Client-NodeJS#102.
Rephrased in 8f969b7. In general, it means that even if you store the data as JSON, then eventually they'll be stored as encoded bytes.
Changed this phrase to "big int (unsigned 64 bit integer)" in 5f93962.
Thanks, I wasn't aware of them. Used them in 1408dcf. |
I created a separate issue for that #182
Currently, it's a set of variables. I think that we could group them together
Updated in 075e013#diff-1e19e6c67c68a571656c7425340cce9e7981c98cc1e80c3f12969f46745575faR51.
I created a separate ticket for that, as this is global docs issue (server docs also use
Addressed that in the PR: EventStore/EventStore-Client-NodeJS#102
Added missing user credentials sample during append in c58bf5c.
Good question - I think that database. Should I create an issue for that?
Should I update JS client to use
I'm not aware of such. @George-Payne could you confirm?
Yup, it's not - should I create a ticket in the NodeJS client? |
resolveLinkTos is well defined within event store now. Although I agree with you that resolveLinks is better I think we best keep it the same for now
Yep we need an issue raising for this
Agree on database. Raised an issue for defining what terms we should use going forwards The only thing that needs fixing before merging this is fixing the menu so that people don't get confused when we push the change |
It's a single It's a |
e51313c
to
c9bcf73
Compare
- renamed payload to data, eventType to type to align with the .NET Client naming - renamed Directions from FORWARD to FORWARDS and BACKWARD to BACKWARDS - renamed resolveLinks into resolveLinkTos
If I'm understanding the question correctly: Constants and types tend to be the preferred way to go in ts / js libs as enums don't really exist in js, and typescript enums are a bit odd once converted to js. (This is one of the few places typescript diverges from ECMA. |
It currently throws an error because thats what GRPC does (the error gets wrapped). We could follow the way the .net one works. Doesnt seem that strange to me to throw an error, but if trying to read streams that don't exist is an expected non-error code path, then we can just catch the error behind the scenes and return a "failed" result. |
…tead of single int fromRevision
@mat-mcloughlin @George-Payne I fixed the @alexeyzimarev @mat-mcloughlin I commented out TODOs in 158afa7. |
I personally prefer to return the result instead of throwing an exception. It gives a smoother experience when you want to conditionally handle that. |