Skip to content
Advertisement

Tag: quarkus-panache

Panache with MongoDB find distinct

I have documents with “tags” arrays as properties. Now I want to query all distinct tag-items. Solution in mongo shell: which gives me: But how can I achieve the same result with Panache? The PanacheMongoEntity does not offer a specific distinct method. Nor do i know how to use the find method to achieve my goal or if it even

How should I persist a PanacheEntity with data coming from a Websocket message?

I’m trying to persist the following entity when receiving a message from the client via Websocket: The following persist works, when receiving a POST request: However, the following code freezes when it reaches the persist line. The message.getPenguin() method is returning an actual Penguin reference (the MessageDecoder.class is doing it’s part): I’m new to Panache/Hibernate, any help would be apreciated,

Advertisement