To start the development server run:
bun run dev
To make the production build:
bun run build
To make test:
bun run test
To run the build using production env:
bun run start
Open http://localhost:3000/ with your browser to see the result.
This document provides an overview of the GraphQL query used to retrieve data about gas stations. This query fetches detailed information about gas stations based on a provided search term.
The query retrieves the following data for gas stations:
- The total count of stations
- Cursor information for pagination
- Available fuel types
- Price information
- Detailed address information
The query takes a single input variable:
query
(String): The search term used to filter gas stations.
The output includes detailed information structured as follows:
query Query($query: String) {
gas(query: $query) {
stations {
count
cursor {
next
}
fuels
price
prices {
cash
credit {
nickname
postedTime
price
}
}
results {
address {
country
line1
line2
locality
postalCode
region
}
}
}
}
}
## GraphQL Query for Gas Station Information
```graphql
query Query($query: String) {
station(query: $query) {
count
cursor {
next
}
fuels
price
prices {
credit {
nickname
postedTime
price
}
cash
}
results {
prices {
credit {
nickname
postedTime
price
}
cash
}
name
id
fuels
address {
country
line1
line2
locality
postalCode
region
}
}
}
}