Fluent Commerce Logo
Docs

fc.graphql.compatibility.articlesByLocation.defaultSearchPeriodDays

Setting

Changed on:

18 Feb 2026

Setting AreaSystem
Supported context levels:ACCOUNT

Overview

This setting controls how far back the system looks when querying articles by location if you don't specify explicit dates. When the `articlesByLocation` query is missing the `from` and/or `to` date parameters, this setting automatically fills in the gaps by calculating a time window of the specified number of days.When this applies:

Values

Data TypeValues
INTEGERDefault Value:
  • 30
Possible Values:
  • Positive integer value as the number of days

Detailed technical description

This setting determines the search window in days when one or more article's `createdOn` parameters are absent:
  • If both `from` and `to` are missing: The system automatically retrieves articles from the past 30 days (sets `to` as the current time and `from` as 30 days prior).
  • If `from` is provided, but `to` is missing: The system calculates the `to` date as `from + 30 days`.
  • If `to` is provided, but `from` is missing: The system calculates the `from` date as `to - 30 days`.
If a window larger than 30 days is necessary, the setting can be adjusted at the account level. To prevent latency, a value of 30 days or less is recommended.Example:
If set to 30 days (default), a query without dates will automatically retrieve articles created in the last 30 days. If you provide only a `from` date, the system calculates `to` as 30 days later. If you provide only a `to` date, the system calculates `from` as 30 days earlier.

Configuration example

1POST {{fluentApiHost}}/graphql
2
3mutation CreateSetting {
4   createSetting(input: {
5		name: "fc.graphql.compatibility.articlesByLocation.defaultSearchPeriodDays", 
6		valueType: "INTEGER", 
7		value: 40, 
8		context: "ACCOUNT", 
9		contextId: 0}) {
10    id
11    name
12  }
13}

Update example

1POST {{fluentApiHost}}/graphql
2
3mutation updateSetting {
4  updateSetting(input: {
5		id: 5001464,
6		name: "fc.graphql.compatibility.articlesByLocation.defaultSearchPeriodDays", 
7		valueType: "INTEGER", 
8		value: 15, 
9		context: "ACCOUNT", 
10		contextId: 0}) {
11    id
12    name
13  }
14}