Comments (3)
Hey @n-elloco,
These options are available on the SDK.
For example, to get entries sorted by updatedAt
:
entries_by_date = client.entries({'order': 'sys.updatedAt'})
Second set of 10 entries, on entries paged by tens (make sure to add an order attribute in order to have deterministic results on paging):
second_10_entries = client.entries({'limit': 10, 'skip': 10, 'order': 'sys.updatedAt'})
Hope that helps
Cheers
from contentful.py.
Thanks for answer. I almost guessed myself. However for sorting I use notation fields.*
instead of sys.*
, because with last pattern I have error BadRequestError: The query you sent was invalid. Probably a filter or ordering specification is not applicable to the type of a field.
from contentful.py.
Hey @n-elloco,
For that case you also need to send the 'content_type'
parameter.
Cheers
from contentful.py.
Related Issues (20)
- Option to disable automatic snake_case transformation
- maximum recursion depth exceeded issue when trying to retrieve entries HOT 14
- How can I include the version header? HOT 1
- python 3.8 support? HOT 3
- Cannot retrieve all localized fields HOT 2
- Sometimes Asset.url() return empty string
- Incorrect documentation for sync HOT 1
- Embedded Asset in rich text field is not localized when using locale's wildcard HOT 2
- Incorrect documentation for Search parameters
- Content type caching breaks for multiple spaces with same content type names HOT 5
- Contentful Python "Create Issue" button links to Contentful Ruby issues page. HOT 1
- Fields with same names overwrite Entry attribute values and types (e.g. content_types) HOT 2
- Converting Entry to JSON does not include field values for multi-nested resources HOT 5
- Fetching an entity recursive builds forever - hanging forever
- Cannot delete an Entry HOT 1
- Is this project still active? HOT 1
- Python EOL Version Support HOT 4
- Unicode payloads are not being encoded correctly HOT 1
- Embedded videos within rich text fields do not get properly serialized when calling `.raw` on the entry HOT 1
- Using the Contentful Python client adds significant latency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contentful.py.