Skip to content

Commit

Permalink
Update docs/source/topics/database.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Casper Welzel Andersen <43357585+CasperWA@users.noreply.github.com>
  • Loading branch information
chrisjsewell and CasperWA authored Aug 17, 2021
1 parent 2ef4177 commit 06c1e60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/source/topics/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ Converting the QueryBuilder to/from a dictionary

In aiida-core version 1, this dictionary was accessed with ``QueryBuilder.queryhelp``, which is now deprecated.

The :class:`~aiida.orm.querybuilder.QueryBuilder` class can be converted to a dictionary and also loaded from a dictionary,
for easy serialisation and storage.
The :class:`~aiida.orm.querybuilder.QueryBuilder` class can be converted to a dictionary and also loaded from a dictionary, for easy serialisation and storage.
Once you have built your query using the appender method explained in the :ref:`finding and querying for data how-to<how-to:query>` and the advanced sections above, you can easily store your query by saving the ``QueryBuilder.as_dict()`` dictionary as a JSON file for later use:

.. code-block:: python
Expand Down

0 comments on commit 06c1e60

Please sign in to comment.