-
Notifications
You must be signed in to change notification settings - Fork 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
Brain dump of demos #7
Comments
This is a dump of interesting snippets we need to document / showcase in Taxi playground. Add to this rough 'n' ready whenever we encounter something that we want to ensure is shown. One's we've built on-the-fly:can use a variable from a saved query in a field projection
Filtering a stream using
|
Examples from Metro Bank implementation 1. Complex Enums
2. Access enum fields for enrichmentUsing the custom errors above
3. Type that is an expressionYou can define a type that has inputs and runs an expression which can be used in conditional statement
Then using this type in a when clause
4. Custom Errors (Exceptions)If you are defining custom errors that are thrown from an API you can do so by inheriting from a base Error type and then can define the error body model
Then you can throw the error and set the body
Then combing this with the enum above you can use the
5. Other enum methodsYou can also use a new enum method to check if an emun name exists, which can be helpful in a
6. Conditional statement in a type
7. Default a type to static string
8. API Key using on a serviceCreate an auth.conf file in
9. Parameterize the url for an API being calledIf you have a service which is an API to be called and want to parameterize the URL so that it works across env
With the above service defined we have create a parameter called
11. Extension functions
12. Using functions in a complex typeTwo things to show here firstly using the functions in the type but also passing the 1st element of an array using
13. Using a projection in a query to set contextThis example may need some more info
|
Add comments to this issue to capture demos that we need to build. We'll review, then split them out into seperate issues
The text was updated successfully, but these errors were encountered: