Fork me on GitHub
#datomic
<
2016-11-01
>
Matt Butler14:11:31

Is there a simple way to tell pull api to return all attributes on the entity but no component entities? Wildcard with no depth I guess.

jaret14:11:19

@mbutler there is no way to limit the component entities from the pull api.

Matt Butler14:11:50

So the best/only way is to specify all the attributes you want in the vector?

kirill.salykin14:11:34

or you can load them lazily via Entity

karol.adamiec17:11:22

is there a literal syntax for uri in datomic? i get errors when trying to insert facts?

karol.adamiec17:11:44

:bracket/thumbnail "assets/thumbs/gt-c1.jpg”

karol.adamiec17:11:59

that one fails saying that it is not a valid uri

karol.adamiec17:11:57

how does one insert an URI using REST api :thinking_face:

jaret17:11:37

@karol.adamiec :db.type/uri maps to java.net.URI.

jaret17:11:04

so...

@(d/transact conn [[:db/add #db/id[:db.part/user] :some/image (java.net.URI. "")]])

jaret17:11:05

should be something like...

curl -X POST -H "Content-Type: application/edn"  -d 
"{:tx-data [{:db/add #db/id[:db.part/user] :foo (java.net.URI. "")}]}"

Matt Butler18:11:40

When querying :tx-data return from a transaction, is there a way to refer to attributes by their db:ident rather than their :db/id?

georgek19:11:05

I haven’t made any account or permission changes in the meantime. I also have a dev server that hits the same store if that makes any difference

georgek19:11:36

Basically it requires me to completely rebuild my environment to get working again. Thoughts?

robert-stuttaford19:11:49

@karol.adamie #uri “

robert-stuttaford19:11:28

easy way to see is to make one with Java ctor and (prn) it 🙂

psavine4223:11:33

@georgek, same thing just happened to me. I was using this install for 3 weeks, and now this happened. java.lang.ClassNotFoundException: org.jboss.netty.channel.socket.nio.BossPool java.lang.NoClassDefFoundError: org/jboss/netty/channel/socket/nio/BossPool

psavine4223:11:46

followed by your exception

georgek23:11:10

@psavine42 Wierd, glad to know it’s not a completely isolated incident! Have also had to rebuild your env or did you find something less time-consuming? (assuming you have enough of a similar setup of course)

psavine4223:11:16

@georgek no, this just happend at the end of my day, and I am just now getting back to it and figured i would come on here... and wouldn't you know. Is env rebuild what solves it for you?

georgek23:11:17

Yep, that tends to reset everything. I think it is correlated to load, as if some instances die or are born corrupt(?)….

georgek23:11:26

I’m still investigating

psavine4223:11:06

@georgek I am thinking that I have netty dep in .m2 repository, and maybe clojure is picking that up. I had just added enlive and a few other things, thought it was that. going to go dig.

georgek23:11:06

Interesting. Dunno. I’m not using anything that’s not in clojars. I thought it was something to do with the fact that I’m using nginx-clojure but that seems unlikely