@onetom try switching the payload format version in the integration config for your API Gateway instance. Saying that based purely on memory so details may be off, but Iām pretty sure I got cut by this exact issue and that was the solution that I eventually found.
@jeff.terrell thanks a lot for the advice. it worked indeed and I can even see how the JWT authorizer has decoded the token!
so i don't have to fall back to the old, RESTful-style API gateway creation
You're very welcome. Also keep an eye out for setting cookies. I ran into an issue where the value of my set cookie header in my ring response map was a vector rather than a string. Apparently this is legal in ring, but it didn't work in an Ions context. Again, going from memory here, but I think that was right. A simple middleware to detect such values and only take the first value out of the vector worked.
Hi all, I have a silly question regarding the pricing model, maybe I'm just missing something: Is the pricing only of instances running Datomic (transactor, etc), or for application instances using the client library as well?
@ben.sless Datomic Cloud presumably? The pricing is only for the nodes/instances running Datomic Cloud software (the nodes started by the Cloudformation template)
@ben.sless i think this page answers that question well: https://www.datomic.com/get-datomic.html > All Datomic On-Prem licenses are perpetual and include all features: > > ā¢ Unlimited Peers and/or Clients
alright, then no charge for the number of clients, only for instances running Datomic itself. What about on-prem?
I've seen datomic.api/entity
. How is it supposed to work? I give it the db plus a :db/id
and it is then supposed to give me a map with all attributes? Or how do I use it? There is only documentation for the Java version, not the Clojure one.
The immediate result is a map with the key :db/id
and nothing else
documentation for entity
: https://docs.datomic.com/on-prem/clojure/index.html#datomic.api/entity
several day of datomic examples use the entity API: https://github.com/Datomic/day-of-datomic/blob/a5f7f0bd084a62df7cc58b9a1c6fe7f8340f9b23/tutorial/hello_world.clj https://github.com/Datomic/day-of-datomic/blob/a5f7f0bd084a62df7cc58b9a1c6fe7f8340f9b23/tutorial/data_functions.clj
however, you should also familiarize yourself with the pull
API, as it provides much of the same functionality as entity
(some differences), but is available in both peer and client
Thanks, ah, so it only fetches the key names when explicitly asked! Well, I don't think I'll ever use the client library, but I have looked at pull
as well (and use it regularly inside a query)
why do u think u would never use the client library?
We're using Datomic on-prem and only use Clojure, so there's simply no reason to
I'm running the free version datomic via https://github.com/fulcrologic/fulcro-rad-demo. How do I interface with datamic to peek inside it?