Skip to content
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

feat(playground): added more playground examples #524

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YonatanKra
Copy link
Collaborator

Closes #181

Comment on lines +117 to +123
return {
data: dataSet['date'],
dailyconfirmed: dataSet['dailyconfirmed'],
dailydeceased: dataSet['dailydeceased'],
dailyrecovered: dataSet['dailyrecovered']
}
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's fix the indentation

Copy link
Contributor

@mhagmajer mhagmajer Oct 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also return is not needed here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mapping is essentially picking keys from objects. Shall we change key names to make this a little more exciting?

@@ -12,4 +13,32 @@ export const customResources: Resources = {
return "Hi, this is AskQL server! It's " + new Date().toString();
},
}),
statewise: resource({
Copy link
Contributor

@mhagmajer mhagmajer Oct 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make this custom resource name more specific

Copy link
Contributor

@mhagmajer mhagmajer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding more examples @YonatanKra.

All of those are currently using fetch and map maybe we can use add filter to some of them to make them more interesting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more examples to the AskScript Playground
2 participants