PricingBlog

How to add null as a default/test query

  • yannis4310-1273590877532721337

    Dr.Dude

    1 year ago

    Hi,
    I have a page that has a path param "flow-id" AND an (optional) query "step-id"
    By default the page gets opened without the step-id and my logic (if step-id is null) picks the first item in a list to be displayed.
    To display this "default" case in the formula editor and so on, I tried to leave the query in the API-Editor empty to set it null, but this doesnt evaluate to equal null.

    How do I set the test query param to Null so I can see my default case in the editor without deleting the query (which would obviously break the non-default case)?
  • burner918-1273736622684504105

    Sean

    1 year ago

    I might not be fully understanding the scenario, but there's a Defaults to node that you can explore. Not sure if that addresses your use case
    1273736622457880646-image.png
  • yannis4310-1275367980926238774

    Dr.Dude

    1 year ago

    Will try that, thanks!