Update to allow search book by an empty bid.
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-01 20:47:34 +03:00
parent 5c31715211
commit 3bc4616c5d
2 changed files with 46 additions and 1 deletions
@@ -204,7 +204,7 @@ defmodule DecentralisedBookIndex.Metadata.Book do
description "Return a list of Books, optionally filtering by BookId."
argument :type, :string, allow_nil?: false
argument :bid, :string, allow_nil?: false
argument :bid, :string, allow_nil?: true
filter expr(exists(bids, type == ^arg(:type) and contains(bid, ^arg(:bid))))