Quantcast
Channel: Mockaroo Community Forum - Latest posts
Browsing all 2665 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


The 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 Article


Image may be NSFW.
Clik here to view.

Create 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 Article

Generate 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 Article

Image may be NSFW.
Clik here to view.

Error: 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 Article


Mapping country and state

Whether Country and state can be mapping

View Article

Epoch 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 Article

Can 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 Article


Can 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 Article


Client.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 Article

Randomly 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 Article

Randomly Execute Function

You can use a random number in an inline formula: if random(1,100) <= 10 this.downcase else this end

View Article

Epoch values for date range are incorrect

Can you post a link to your schema and an example of an incorrect value?

View Article


Epoch 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 Article

Epoch 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 Article


Epoch 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 Article

Copy 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 Article


Copy 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 Article

Random 'City' location

Hi, is it possible to get random long/lat based on ‘city’ (like we currently have for ‘Countries’)?

View Article

Limit 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
Browsing all 2665 articles
Browse latest View live