3 ms·
Seems like an unnecessary layer of abstraction to me. If I'm in a webbrowser anyway, it's much easier to open the console, write decodeURIComponent(`<your_encod
by mark_and_sweep 5y ago
Seems like an unnecessary layer of abstraction to me. If I'm in a webbrowser anyway, it's much easier to open the console, write decodeURIComponent(`<your_encoded_query_here>`) and look at the decoded query rather than having to translate PQL to GraphQL syntax in my head, especially since the GraphQL will be a nicely formatted multi-line string whereas the PQL is single-line.
- AgoRapide 5y agoI have dabbled with the same problem with AgoRapide which offers queries through GET (although on a much simpler level than PQL / GraphQL). I just present the query in readable form together with the output, letting the user choose between copy / paste the URL or copy / paste the readable form. Example: http://arnorthwind.agorapide.com/RQ/dt/Order/WHERE%20ShippedDate%20=%20Today/SELECT%20OrderId,%20ShippedDate,%20CustomerId,%20Customer.CompanyName,%20OrderDetail.Sum.Sum()%20AS%20SumOrder http://arnorthwind.agorapide.com/RQ/dt/Order/WHERE%20Shipped... will present the alternative form Order WHERE ShippedDate = Today SELECT OrderId, ShippedDate, CustomerId, Customer.CompanyName, OrderDetail.Sum.Sum() AS SumOrder together with options for choosing Yesterday, 2 days ago and so on. See more examples at http://arnorthwind.agorapide.com/ http://arnorthwind.agorapide.com/