Selecting a random number of rows from a dataset for use in an array of...
I have a dataset I created of contacts and I’m working on creating a dataset of customers. In the app I am building, customers can have multiple contacts. I know we are able to select columns from...
View ArticleThe currency option in the 1000 row generator
Can someone tell me how to change the currency option for a price field? I am enrolled in Nelson’s SQL course (Amigos Code) and in his video, there is a none option where the USD and other currencies...
View ArticleCreate Object that sometimes is nil
Hello. How do I set the ‘cost’ (nested ) object to be ‘nil’ when my type is ‘Create’ and to populate it with data when the type is any other
View ArticleGenerate Rows with now new rows added
I have 900 records in my dataset, but when I run the API it generates 3 extra records because i Added generate 3. I tried generate 0 or removing the line but in that case I don’t get any of my...
View ArticleError: Getting 'null' from nested JSON array
Hello, I’m getting the “value” : null when attempting to get a value from a nested JSON array: Example: We want to apply following condition for ‘meterreadings.intervalusage.interval.value’ field if...
View ArticleEpoch values for date range are incorrect
When requesting a set of epoch values from 1 Jan 2010 through 31 Dec 2020, the resulting values do not fall into that date range (they’re too short, resulting in values resolving to 1970.)
View ArticleCan Mockaroo import JSON schema files?
It appears that you can import a schema from json definition but when I try using both Firefox and Chrome, all the fields show as ‘null’ in Preview. Does not work. Any updates?
View ArticleCan Mockaroo import JSON schema files?
After importing the JSON schema, you need to pick field types for each field. Mockaroo can’t automatically figure out what type of data is needed for each field because its concept of a “type” is much...
View ArticleClient.generate not generating SQL insert string
Hi Team, I have created the required schema for generating the mock data. While using the new Mockaroo.Client for generating the SQL insert scripts is not working as expected. It returns JSON...
View ArticleRandomly Execute Function
I’m looking for a formula to execute upper(first_name) on 10% of the records. Couldn’t find anything on Google or in existing posts. Sorry for noob question but I’m just trying to adopt some new...
View ArticleRandomly Execute Function
You can use a random number in an inline formula: if random(1,100) <= 10 this.downcase else this end
View ArticleEpoch values for date range are incorrect
Can you post a link to your schema and an example of an incorrect value?
View ArticleEpoch values for date range are incorrect
Here’s the schema: Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL / Excel Here’s the first 10 results from one example that I just generated: { "id": 1, "epochstamp":...
View ArticleEpoch values for date range are incorrect
It looks like those are valid Unix epochs. You can convert them to date times here: https://www.epochconverter.com/ Were you expecting a different format?
View ArticleEpoch values for date range are incorrect
As you can see the entire set comprises a few days in mid-January 1970 rather than a random assortment across the specified range (1 Jan 2010 to 31 Dec 2020.)
View ArticleCopy a Schema from one Project to another
How do I Copy a Schema from one Project to a new one please? Or How do I copy the entire Project to a new one please?
View ArticleCopy a Schema from one Project to another
I have a workaround: 1 Create new Project 2 Clone existing Schema and Rename it 3 Move cloned Renamed Schema to new Project with the new Name.
View ArticleRandom 'City' location
Hi, is it possible to get random long/lat based on ‘city’ (like we currently have for ‘Countries’)?
View ArticleLimit on total size of all arrays?
“Total of all array sizes multiplied by the number of rows being downloaded must be 10,000 or less (currently 70,000).” Is this limit dependent on the type of account? Is there a way around of it that...
View Article