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

Support for attr-with-opts in pull syntax (:as, :default, etc.) #270

Closed
Jumblemuddle opened this issue Jul 28, 2018 · 2 comments
Closed

Support for attr-with-opts in pull syntax (:as, :default, etc.) #270

Jumblemuddle opened this issue Jul 28, 2018 · 2 comments

Comments

@Jumblemuddle
Copy link
Contributor

@Jumblemuddle Jumblemuddle commented Jul 28, 2018

See https://docs.datomic.com/on-prem/pull.html#attribute-with-options
Having the ability to rename parameters and give them defaults would be very useful, and it gets us one step closer to feature parity with Datomic.

@Jumblemuddle

This comment has been minimized.

Copy link
Contributor Author

@Jumblemuddle Jumblemuddle commented Jul 28, 2018

Oh, apparently :default can be used in a different way than in Datomic.
(d/pull @conn '[:alpha [:default :bravo 0]] 1)
Is that documented somewhere? I just got it from the source.

Jumblemuddle added a commit to Jumblemuddle/datascript that referenced this issue Jul 28, 2018
@tonsky tonsky closed this in 1a1f3c4 Nov 29, 2018
tonsky added a commit that referenced this issue Nov 29, 2018
@Jumblemuddle

This comment has been minimized.

Copy link
Contributor Author

@Jumblemuddle Jumblemuddle commented Nov 30, 2018

Thanks, @tonsky!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.